<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-type" content="text/html; charset=utf-8"> 
		<title>在线考试系统</title>
		<!--<link rel="icon" href="/favicon.ico" type="image/x-icon" />-->
		<!--<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />-->
		<link type="text/css" href="css/login.css" rel="stylesheet" >
	</head>
	<body>
		<div id="wrapper">
			<div id="header"></div>
			<div id="maincontent" style="width:100%;">
				<div style="margin:200px auto; width:425px">
					<form action="login_process.php" method="post">
						<div>
							<span class="warn" <?php if(!array_key_exists('unorpasse', $_GET) && !array_key_exists('err_stuno', $_GET) && !array_key_exists('err_pass', $_GET)) { ?> style="display: none" <?php } ?>>学号或密码错误</span>
						</div>
						<div>
							<label>学号</label> 
							<input id="stuno" name="stuno" type="text" value="<?php if(array_key_exists('err_stuno', $_GET)) echo $_GET['err_stuno'] ?>"/>
							<span id="warn_stuno" class="warn" <?php if(!array_key_exists('err_stuno', $_GET)) { ?>style="display:none" <?php } ?>>学号输入有误!</span>
						</div>
						<div>
							<label>密码</label> 
							<input id="pass" name="pass" type="password" maxlength="16"/>
							<span id="warn_pass" class="warn" style="display:none">密码应不少于6位</span>
						</div>
						<div>
							<label></label>
							<input id="login" type="button" value="登录"/>
							<a id="register" style="line-height:30px; vertical-align: baseline; font-size: 13px;display:inline-block;margin-left: 100px" href="register.php" target="_self"/>注册</a>
							<span class="warn"></span>
						</div>
					</form>
				</div>
			</div>
			<div id="footer"></div>
		</div>
		<script type="application/javascript" src="js/login.js"></script>
	</body>
</html>
